 <script th:inline="javascript">
/*<![CDATA[*/

    function del(event,element){
        event.preventDefault();
          bootbox.confirm("您确定删除吗?", function(result) {
        if(result){
            var _id = $(element).attr("href");
            BOSS.remoteCall('goods/brandgeneralinfo/delete',$('#generalinfo_grid'),{id:_id});
            }
        }); 
    }
    
/*]]>*/
</script>
<table layout:fragment="brands_table" class="table table-striped table-bordered  table-advance table-hover" id="generalinfo_grid">
    <thead>
        <tr>
            <th>品牌名称</th>
            <th>开始时间</th>
            <th>结束时间</th>
            <th>是否显示</th>
            <th>操作</th>
        </tr>
    </thead>    
    <tbody>
        <tr class="odd gradeX" th:each="data : ${brandGeneralInfoList}">
            <td th:text="${data.brand.name}">
                 hstyle
            </td>
            <td th:text="${#calendars.format(data.startDate,'yyyy-MM-dd HH:mm:ss')}">
                 1999-1-1 00:00:00
            </td>
            <td th:text="${#calendars.format(data.endDate,'yyyy-MM-dd HH:mm:ss')}">
                 2014-1-1 00:00:00
            </td>
            <td class="center" th:text="${data.displayed}? 是:否">
            </td>
            <td>
                 <a th:attr="id=${'link_edit_'+dataStat.index}"  href="" th:href="@{'/goods/brandgeneralinfo/edit/'+${data.id}}"  class="btn default btn-xs purple" ><i class="fa fa-edit"></i>编辑</a>|
                 <a th:attr="id=${'link_delete_'+dataStat.index}" href="#" th:href="${data.id}" class="btn default btn-xs purple" onclick="del(event,this);"><i class="fa fa-minus"></i>移除</a>
            </td>         
        </tr>
     </tbody>
</table>
